package model

import (
	"fmt"
	"time"

	"github.com/gin-gonic/gin"
)

type User struct {
}

type Hanler func(c *gin.Context) (interface{}, error)

func GetUserInfo(c *gin.Context) (interface{}, error) {
	if time.Now().Unix()%2 == 0 {

		return gin.H{
			"result": "userList",
		}, nil
	} else {
		return nil, fmt.Errorf("获取失败")
	}
}
